package service.sys.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import vo.sys.SysMenu;
import dao.sys.SysMenuMapper;

@Service
public class SysMenuService {
	@Resource
	private SysMenuMapper mapper;

	public int add(SysMenu menu) throws Exception{
		return mapper.insertSelective(menu);
	}
	
	public int remove(SysMenu menu) throws Exception{
		return 0;
	}
	
	public int change(SysMenu menu) throws Exception{
		return 0;
	}
	
	public List<SysMenu> search(SysMenu menu) throws Exception{
		return mapper.searchByName(menu);
	}
}
